public class Master2 {
    private String name;

    public Master2(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void Housing(Country2 country2,House2 house2){
        System.out.println("主人"+getName()+"住在"+country2.getName()+"的"+house2.getName()+"房子里");

    }
}
